// Decompiled by Jad v1.5.7g. Copyright 2000 Pavel Kouznetsov.
// Jad home page: http://www.geocities.com/SiliconValley/Bridge/8617/jad.html
// Decompiler options: packimports(3) fieldsfirst ansi 
// Source File Name:   SysSeqPO.java

package com.vandagroup.common.util.seqgener;

import com.vandagroup.common.bean.FormBean;
import com.vandagroup.common.po.PortalPO;
import java.sql.*;

// Referenced classes of package com.vandagroup.common.util.seqgener:
//            SysSeqFormBean

public class SysSeqPO extends PortalPO
{

    SysSeqFormBean formBean;

    public SysSeqPO()
    {
        formBean = new SysSeqFormBean();
    }

    public SysSeqFormBean getSysSeqForm()
    {
        return formBean;
    }

    public void setSysSeqForm(SysSeqFormBean formBean)
    {
        this.formBean = formBean;
    }

    public FormBean fetchResult(ResultSet rs)
        throws SQLException
    {
        SysSeqFormBean bean = new SysSeqFormBean();
        bean.setSeqObj(rs.getString("SEQOBJ"));
        bean.setSeqNO(rs.getInt("SEQNO"));
        return bean;
    }

    public String getColumnNames()
    {
        return "SEQOBJ, SEQNO";
    }

    public String getInsertValuesString()
    {
        return "?, ?";
    }

    public String getTableName()
    {
        return "SYSSEQ";
    }

    public String getUpdateValuesString()
    {
        return "SEQOBJ = ?, SEQNO = ?";
    }

    public void prepareInsertStatement(PreparedStatement ps)
        throws SQLException
    {
        ps.setString(1, formBean.getSeqObj());
        ps.setInt(2, formBean.getSeqNO());
    }

    public void prepareUpdateStatement(PreparedStatement ps)
        throws SQLException
    {
        ps.setString(1, formBean.getSeqObj());
        ps.setInt(2, formBean.getSeqNO());
    }

    public FormBean getFormBean()
    {
        return formBean;
    }
}
